﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ecomerci
{
    public partial class showPDF : Form
    {
        public string filename { get; set; }
        public showPDF()
        {
            InitializeComponent();
        }

        public void openPDF(string Filename)
        {
            acroPDF.LoadFile(Filename);
            acroPDF.Show();
        }

        public void printPDF()
        {
            acroPDF.Print();
        }

        private void btPrint_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            printPDF();
        }

        private void btClose_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
